package com.sundog.sundroid;



import java.util.Map;

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.filter.PacketFilter;
import org.jivesoftware.smack.filter.PacketTypeFilter;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Packet;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.sundog.sundroid.google.GoogleService;

/**
 * Class for displaying resolved vote for the users
 * 
 * @author Matt
 *
 */
public class ResolveScreenUser extends Activity implements OnClickListener {
	
	/** Resolved vote */
	String voteResult;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.resolvevote);
		
		// Initialize variables
		voteResult = ResultsWaitingScreen.resolveResult;
		String vote = voteResult;
	
		TextView details = (TextView) this.findViewById(R.id.user);
		details.setText("" + vote);
		
		// Set up button click listener
		View startButton = this.findViewById(R.id.nextstory_button);
	    startButton.setOnClickListener(this);	    
	}
	
	/**
	 * Process button clicks
	 */
	public void onClick(View v) {
    	switch (v.getId()) {
    	
    	case R.id.nextstory_button:
    		  		
    		Intent i = new Intent(this, Wait.class);
    		startActivity(i);
    		break;
    	}
	}    	
}
